package com.erb.service.llb.impl;

import com.erb.entity.Notice;
import com.erb.mapper.NoticeMapper;
import com.erb.service.llb.INoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class NoticeServiceImpl implements INoticeService {
	@Autowired
	NoticeMapper noticeMapper;

	@Override
	public int updateNotice(Notice notice) {
		return noticeMapper.updateNotice(notice);
	}

	@Override
	public int addNotice(Notice notice) {
		return noticeMapper.addNotice(notice);
	}

	@Override
	public int deleteNotice(int id) {
		return noticeMapper.deleteNotice(id);
	}

	@Override
	public Notice findNoticeById(int id) {
		return noticeMapper.findNoticeById(id);
	}
}
